
package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;



@Getter
@Setter
public class AtMe  extends BaseDomain {

    public static final Integer THEME_STRATEGY = 0; //文章的类型为攻略
    public static final Integer STATE_TRAVEL = 1; //文章的类型为游记
    private String comment;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date commentTime;

    private Long userId;
    private String userName;
    private String userHeadImgUrl;

    private Long themeId;
    //加点注释
    //
    private String themeTitle;


    private boolean haseread=false;

    private Long beAtUserId;
    private String beAtUserName;

    private Integer theme_type= STATE_TRAVEL;

    public String getTitleMessage(){
        String msg="在";
        if(theme_type.equals(STATE_TRAVEL))
        {
            msg+= "游记:";
        }else {
            msg+="攻略:";
        }
        msg+=themeTitle;
        msg+="中@我";


        return msg;

    }
    public String getDestinationMsg(){
        String msg=""+themeId+"&destination=";
        return msg+id;
    }



}